/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import dao.d_doctor;
import dao.d_signo;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author May
 */
public class signo {
    int id;
    int pulso;
    int temperatura;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPulso() {
        return pulso;
    }

    public void setPulso(int pulso) {
        this.pulso = pulso;
    }

    public int getTemperatura() {
        return temperatura;
    }

    public void setTemperatura(int temperatura) {
        this.temperatura = temperatura;
    }
 
   public boolean BuscaXId_SignoVital() {
        try {
            signo aux;
            d_signo aspectoDB = new d_signo();
            aux = aspectoDB.buscarSigno(this.id);
            
            if(aux!=null){
            setPulso(aux.getPulso());
            setTemperatura(aux.getTemperatura());
             return true;
            }else{
               return false;}     
            } catch (SQLException ex) {
            Logger.getLogger(signo.class.getName()).log(Level.SEVERE, null, ex);
            }
        return false;
    }
}
